<% /* $Id: problem.jsp 132 2011-08-26 10:23:42Z altdotua@gmail.com $ */ %>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@ include file="header.jsp" %>

<%
	Long problemId = Long.parseLong(request.getParameter("problem_id"));
	ContestProblemEntry contestProblemEntry = ContestProblemsModel.getEntry(problemId);
	ProblemEntry problem = ProblemsModel.getEntry(contestProblemEntry.getProblemId());
	if (null == problem)
	{
%>
		<h2><%= bundle.getString("W_PROBLEM_NOT_FOUND") %></h2>
<%
	}
	else
	{

		%>
		<h1 align="center"><%= bundle.getString("W_PROBLEM") %> <%= problem.getSid() %>: <%= problem.getName() %></h1>
		<div class="content">
			<%= problem.getStatement() %>
		</div>
		<hr />
		<table>
			<tr>			
			<td width="100"><a href="<%= Linker.link("submit.jsp?problem_id=" + contestProblemEntry.getId()) %>&contest_id=<%= contest.getId() %>"><%= bundle.getString("W_SUBMIT") %></a></td>
			<td width="100"><a href="<%= Linker.link("submissions.jsp?problem_id=" + contestProblemEntry.getId()) %>&judgement=AC">Вдалі спроби</a></td>
			<td width="100"><a href="<%= Linker.link("submissions.jsp?problem_id=" + contestProblemEntry.getId()) %>">Всі спроби</a></td>
			</tr>
		</table>
<%		
	}
%>

<%@ include file="footer.jsp" %>